Integrand size = 18, antiderivative size = 481 \[ \int \frac {x}{a+b \text {sech}\left (c+d \sqrt {x}\right )} \, dx=\frac {x^2}{2 a}-\frac {2 b x^{3/2} \log \left (1+\frac {a e^{c+d \sqrt {x}}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d}+\frac {2 b x^{3/2} \log \left (1+\frac {a e^{c+d \sqrt {x}}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d}-\frac {6 b x \operatorname {PolyLog}\left (2,-\frac {a e^{c+d \sqrt {x}}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^2}+\frac {6 b x \operatorname {PolyLog}\left (2,-\frac {a e^{c+d \sqrt {x}}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^2}+\frac {12 b \sqrt {x} \operatorname {PolyLog}\left (3,-\frac {a e^{c+d \sqrt {x}}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^3}-\frac {12 b \sqrt {x} \operatorname {PolyLog}\left (3,-\frac {a e^{c+d \sqrt {x}}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^3}-\frac {12 b \operatorname {PolyLog}\left (4,-\frac {a e^{c+d \sqrt {x}}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^4}+\frac {12 b \operatorname {PolyLog}\left (4,-\frac {a e^{c+d \sqrt {x}}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^4} \]
[Out]
Time = 0.61 (sec) , antiderivative size = 481, normalized size of antiderivative = 1.00, number of steps used = 15, number of rules used = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {5544, 4276, 3401, 2296, 2221, 2611, 6744, 2320, 6724} \[ \int \frac {x}{a+b \text {sech}\left (c+d \sqrt {x}\right )} \, dx=-\frac {12 b \operatorname {PolyLog}\left (4,-\frac {a e^{c+d \sqrt {x}}}{b-\sqrt {b^2-a^2}}\right )}{a d^4 \sqrt {b^2-a^2}}+\frac {12 b \operatorname {PolyLog}\left (4,-\frac {a e^{c+d \sqrt {x}}}{b+\sqrt {b^2-a^2}}\right )}{a d^4 \sqrt {b^2-a^2}}+\frac {12 b \sqrt {x} \operatorname {PolyLog}\left (3,-\frac {a e^{c+d \sqrt {x}}}{b-\sqrt {b^2-a^2}}\right )}{a d^3 \sqrt {b^2-a^2}}-\frac {12 b \sqrt {x} \operatorname {PolyLog}\left (3,-\frac {a e^{c+d \sqrt {x}}}{b+\sqrt {b^2-a^2}}\right )}{a d^3 \sqrt {b^2-a^2}}-\frac {6 b x \operatorname {PolyLog}\left (2,-\frac {a e^{c+d \sqrt {x}}}{b-\sqrt {b^2-a^2}}\right )}{a d^2 \sqrt {b^2-a^2}}+\frac {6 b x \operatorname {PolyLog}\left (2,-\frac {a e^{c+d \sqrt {x}}}{b+\sqrt {b^2-a^2}}\right )}{a d^2 \sqrt {b^2-a^2}}-\frac {2 b x^{3/2} \log \left (\frac {a e^{c+d \sqrt {x}}}{b-\sqrt {b^2-a^2}}+1\right )}{a d \sqrt {b^2-a^2}}+\frac {2 b x^{3/2} \log \left (\frac {a e^{c+d \sqrt {x}}}{\sqrt {b^2-a^2}+b}+1\right )}{a d \sqrt {b^2-a^2}}+\frac {x^2}{2 a} \]
[In]
[Out]
Rule 2221
Rule 2296
Rule 2320
Rule 2611
Rule 3401
Rule 4276
Rule 5544
Rule 6724
Rule 6744
Rubi steps \begin{align*} \text {integral}& = 2 \text {Subst}\left (\int \frac {x^3}{a+b \text {sech}(c+d x)} \, dx,x,\sqrt {x}\right ) \\ & = 2 \text {Subst}\left (\int \left (\frac {x^3}{a}-\frac {b x^3}{a (b+a \cosh (c+d x))}\right ) \, dx,x,\sqrt {x}\right ) \\ & = \frac {x^2}{2 a}-\frac {(2 b) \text {Subst}\left (\int \frac {x^3}{b+a \cosh (c+d x)} \, dx,x,\sqrt {x}\right )}{a} \\ & = \frac {x^2}{2 a}-\frac {(4 b) \text {Subst}\left (\int \frac {e^{c+d x} x^3}{a+2 b e^{c+d x}+a e^{2 (c+d x)}} \, dx,x,\sqrt {x}\right )}{a} \\ & = \frac {x^2}{2 a}-\frac {(4 b) \text {Subst}\left (\int \frac {e^{c+d x} x^3}{2 b-2 \sqrt {-a^2+b^2}+2 a e^{c+d x}} \, dx,x,\sqrt {x}\right )}{\sqrt {-a^2+b^2}}+\frac {(4 b) \text {Subst}\left (\int \frac {e^{c+d x} x^3}{2 b+2 \sqrt {-a^2+b^2}+2 a e^{c+d x}} \, dx,x,\sqrt {x}\right )}{\sqrt {-a^2+b^2}} \\ & = \frac {x^2}{2 a}-\frac {2 b x^{3/2} \log \left (1+\frac {a e^{c+d \sqrt {x}}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d}+\frac {2 b x^{3/2} \log \left (1+\frac {a e^{c+d \sqrt {x}}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d}+\frac {(6 b) \text {Subst}\left (\int x^2 \log \left (1+\frac {2 a e^{c+d x}}{2 b-2 \sqrt {-a^2+b^2}}\right ) \, dx,x,\sqrt {x}\right )}{a \sqrt {-a^2+b^2} d}-\frac {(6 b) \text {Subst}\left (\int x^2 \log \left (1+\frac {2 a e^{c+d x}}{2 b+2 \sqrt {-a^2+b^2}}\right ) \, dx,x,\sqrt {x}\right )}{a \sqrt {-a^2+b^2} d} \\ & = \frac {x^2}{2 a}-\frac {2 b x^{3/2} \log \left (1+\frac {a e^{c+d \sqrt {x}}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d}+\frac {2 b x^{3/2} \log \left (1+\frac {a e^{c+d \sqrt {x}}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d}-\frac {6 b x \operatorname {PolyLog}\left (2,-\frac {a e^{c+d \sqrt {x}}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^2}+\frac {6 b x \operatorname {PolyLog}\left (2,-\frac {a e^{c+d \sqrt {x}}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^2}+\frac {(12 b) \text {Subst}\left (\int x \operatorname {PolyLog}\left (2,-\frac {2 a e^{c+d x}}{2 b-2 \sqrt {-a^2+b^2}}\right ) \, dx,x,\sqrt {x}\right )}{a \sqrt {-a^2+b^2} d^2}-\frac {(12 b) \text {Subst}\left (\int x \operatorname {PolyLog}\left (2,-\frac {2 a e^{c+d x}}{2 b+2 \sqrt {-a^2+b^2}}\right ) \, dx,x,\sqrt {x}\right )}{a \sqrt {-a^2+b^2} d^2} \\ & = \frac {x^2}{2 a}-\frac {2 b x^{3/2} \log \left (1+\frac {a e^{c+d \sqrt {x}}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d}+\frac {2 b x^{3/2} \log \left (1+\frac {a e^{c+d \sqrt {x}}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d}-\frac {6 b x \operatorname {PolyLog}\left (2,-\frac {a e^{c+d \sqrt {x}}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^2}+\frac {6 b x \operatorname {PolyLog}\left (2,-\frac {a e^{c+d \sqrt {x}}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^2}+\frac {12 b \sqrt {x} \operatorname {PolyLog}\left (3,-\frac {a e^{c+d \sqrt {x}}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^3}-\frac {12 b \sqrt {x} \operatorname {PolyLog}\left (3,-\frac {a e^{c+d \sqrt {x}}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^3}-\frac {(12 b) \text {Subst}\left (\int \operatorname {PolyLog}\left (3,-\frac {2 a e^{c+d x}}{2 b-2 \sqrt {-a^2+b^2}}\right ) \, dx,x,\sqrt {x}\right )}{a \sqrt {-a^2+b^2} d^3}+\frac {(12 b) \text {Subst}\left (\int \operatorname {PolyLog}\left (3,-\frac {2 a e^{c+d x}}{2 b+2 \sqrt {-a^2+b^2}}\right ) \, dx,x,\sqrt {x}\right )}{a \sqrt {-a^2+b^2} d^3} \\ & = \frac {x^2}{2 a}-\frac {2 b x^{3/2} \log \left (1+\frac {a e^{c+d \sqrt {x}}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d}+\frac {2 b x^{3/2} \log \left (1+\frac {a e^{c+d \sqrt {x}}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d}-\frac {6 b x \operatorname {PolyLog}\left (2,-\frac {a e^{c+d \sqrt {x}}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^2}+\frac {6 b x \operatorname {PolyLog}\left (2,-\frac {a e^{c+d \sqrt {x}}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^2}+\frac {12 b \sqrt {x} \operatorname {PolyLog}\left (3,-\frac {a e^{c+d \sqrt {x}}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^3}-\frac {12 b \sqrt {x} \operatorname {PolyLog}\left (3,-\frac {a e^{c+d \sqrt {x}}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^3}-\frac {(12 b) \text {Subst}\left (\int \frac {\operatorname {PolyLog}\left (3,\frac {a x}{-b+\sqrt {-a^2+b^2}}\right )}{x} \, dx,x,e^{c+d \sqrt {x}}\right )}{a \sqrt {-a^2+b^2} d^4}+\frac {(12 b) \text {Subst}\left (\int \frac {\operatorname {PolyLog}\left (3,-\frac {a x}{b+\sqrt {-a^2+b^2}}\right )}{x} \, dx,x,e^{c+d \sqrt {x}}\right )}{a \sqrt {-a^2+b^2} d^4} \\ & = \frac {x^2}{2 a}-\frac {2 b x^{3/2} \log \left (1+\frac {a e^{c+d \sqrt {x}}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d}+\frac {2 b x^{3/2} \log \left (1+\frac {a e^{c+d \sqrt {x}}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d}-\frac {6 b x \operatorname {PolyLog}\left (2,-\frac {a e^{c+d \sqrt {x}}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^2}+\frac {6 b x \operatorname {PolyLog}\left (2,-\frac {a e^{c+d \sqrt {x}}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^2}+\frac {12 b \sqrt {x} \operatorname {PolyLog}\left (3,-\frac {a e^{c+d \sqrt {x}}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^3}-\frac {12 b \sqrt {x} \operatorname {PolyLog}\left (3,-\frac {a e^{c+d \sqrt {x}}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^3}-\frac {12 b \operatorname {PolyLog}\left (4,-\frac {a e^{c+d \sqrt {x}}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^4}+\frac {12 b \operatorname {PolyLog}\left (4,-\frac {a e^{c+d \sqrt {x}}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^4} \\ \end{align*}
Time = 0.67 (sec) , antiderivative size = 373, normalized size of antiderivative = 0.78 \[ \int \frac {x}{a+b \text {sech}\left (c+d \sqrt {x}\right )} \, dx=\frac {\sqrt {-a^2+b^2} d^4 x^2-4 b d^3 x^{3/2} \log \left (1+\frac {a e^{c+d \sqrt {x}}}{b-\sqrt {-a^2+b^2}}\right )+4 b d^3 x^{3/2} \log \left (1+\frac {a e^{c+d \sqrt {x}}}{b+\sqrt {-a^2+b^2}}\right )-12 b d^2 x \operatorname {PolyLog}\left (2,\frac {a e^{c+d \sqrt {x}}}{-b+\sqrt {-a^2+b^2}}\right )+12 b d^2 x \operatorname {PolyLog}\left (2,-\frac {a e^{c+d \sqrt {x}}}{b+\sqrt {-a^2+b^2}}\right )+24 b d \sqrt {x} \operatorname {PolyLog}\left (3,\frac {a e^{c+d \sqrt {x}}}{-b+\sqrt {-a^2+b^2}}\right )-24 b d \sqrt {x} \operatorname {PolyLog}\left (3,-\frac {a e^{c+d \sqrt {x}}}{b+\sqrt {-a^2+b^2}}\right )-24 b \operatorname {PolyLog}\left (4,\frac {a e^{c+d \sqrt {x}}}{-b+\sqrt {-a^2+b^2}}\right )+24 b \operatorname {PolyLog}\left (4,-\frac {a e^{c+d \sqrt {x}}}{b+\sqrt {-a^2+b^2}}\right )}{2 a \sqrt {-a^2+b^2} d^4} \]
[In]
[Out]
\[\int \frac {x}{a +b \,\operatorname {sech}\left (c +d \sqrt {x}\right )}d x\]
[In]
[Out]
\[ \int \frac {x}{a+b \text {sech}\left (c+d \sqrt {x}\right )} \, dx=\int { \frac {x}{b \operatorname {sech}\left (d \sqrt {x} + c\right ) + a} \,d x } \]
[In]
[Out]
\[ \int \frac {x}{a+b \text {sech}\left (c+d \sqrt {x}\right )} \, dx=\int \frac {x}{a + b \operatorname {sech}{\left (c + d \sqrt {x} \right )}}\, dx \]
[In]
[Out]
Exception generated. \[ \int \frac {x}{a+b \text {sech}\left (c+d \sqrt {x}\right )} \, dx=\text {Exception raised: ValueError} \]
[In]
[Out]
\[ \int \frac {x}{a+b \text {sech}\left (c+d \sqrt {x}\right )} \, dx=\int { \frac {x}{b \operatorname {sech}\left (d \sqrt {x} + c\right ) + a} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {x}{a+b \text {sech}\left (c+d \sqrt {x}\right )} \, dx=\int \frac {x}{a+\frac {b}{\mathrm {cosh}\left (c+d\,\sqrt {x}\right )}} \,d x \]
[In]
[Out]